<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function getMoney() {
      let ye = +prompt("输入银行卡余额")
      let yx = +prompt("输入当月食宿消费金额")
      let ysh = +prompt("输入当月生活消费金额")
      ye = ye - yx - ysh
      document.write(`银行卡剩余余额为：${ye}`)
      return (ye)
    }
    getMoney()
  </script>
</body>

</html>